home *** CD-ROM | disk | FTP | other *** search
/ Explorer - Mosaic & Web / Explorer - Mosaic & Web.iso / tools / wing / demos / static / makefile < prev    next >
Encoding:
Makefile  |  1994-10-08  |  2.9 KB  |  99 lines

  1. PROJ = Static
  2. SRC = Static.C
  3.  
  4. # Make the apropriate changes in the above to match your projects needs.
  5. #
  6. # 'PROJ' in above controls the name of the resultant executable
  7. #
  8. # 'SRC' in above is a list of the 'C' sources that make up this project
  9. #
  10. # Make sure that your current INCLUDE and LIB environment variables include
  11. # the locations necessary to resolve any additional files necessary to build
  12. # this project. If you don't want your system wide environment variables to
  13. # point to the 'Chicago' SDK components, you can modify, and uncomment the
  14. # below two lines appropriately:
  15. #
  16. INCLUDE = D:\CHICAGO.SDK\INC32;$(INCLUDE)
  17. LIB = D:\CHICAGO.SDK\LIB32;$(LIB)
  18.  
  19. all: $(PROJ).exe
  20.  
  21. #DEBUG = 1
  22. # To enable 'DEBUG' mode, you can either uncomment the line above, or
  23. # you can create a local environment variable called 'DEBUG':
  24. #       C:\> set debug=1
  25. # Note that it is merely the existance of this variable that is being
  26. # tested, not the value. Even 'set debug=0' will cause debug mode
  27. # to be used.
  28.  
  29.  
  30. # If no CPU designation is set as an environment variable, assume Intel
  31. !IF "$(CPU)" == ""
  32. CPU=i386
  33. !ENDIF
  34.  
  35.  
  36. # Compiler Options: --------------------------------------------------------
  37. cc = cl
  38. cflags = /nologo /W3 /DWIN32 /D_WINDOWS /c
  39. cdebug = /G3 /Zi /D_DEBUG /Od
  40. cretail= /Os
  41.  
  42.  
  43. # Resource Compiler Options: -----------------------------------------------
  44. rc = rc
  45. rcflags = /dWIN32
  46.  
  47.  
  48. # Help Compiler Options: --------------------------------------------------
  49. hc = hc31
  50. hcflags =
  51.  
  52.  
  53. # Linker Options: ----------------------------------------------------------
  54. # Note the use of /SUBSYSTEM:windows,4.0 below. This tells 'Chicago' that
  55. # this is a 'Chicago' aware executable. One of the things this will provide,
  56. # is make the default dialog background 'gray' rather then 'white'. If you
  57. # end up needing to run this program on a Win32 system that is not aware of
  58. # the '4.0' specification (ie: it gives you an error message when it tries
  59. # to load) then you will need to remove the ",4.0" portion below.
  60. link = link
  61. libs = user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib version.lib\
  62.        shell32.lib ole32.lib oleaut32.lib uuid.lib olecli32.lib olesvr32.lib
  63. lflags = /SUBSYSTEM:windows,4.0  /MACHINE:$(CPU) /DEF:$(PROJ).DEF
  64. ldebug = /DEBUG
  65. lretail=
  66. objfiles= $(SRC:.C=.OBJ) $(PROJ).RES
  67.  
  68.  
  69. # Inference Rules: ---------------------------------------------------------
  70.  
  71. .c.obj:
  72. !IFDEF DEBUG
  73.     $(cc) $(cflags) $(cdebug) $<
  74. !ELSE
  75.     $(cc) $(cflags) $(cretail) $<
  76. !ENDIF
  77.  
  78.  
  79. .rc.res:
  80.     $(rc) $(rcflags) -r $<
  81.  
  82.  
  83. $(PROJ).hlp: $(PROJ).hpj $(PROJ).rtf
  84.     $(hc) $(hcflags) $(PROJ).hpj
  85.  
  86.  
  87. # Build The Project: -------------------------------------------------------
  88.  
  89. $(PROJ).exe: $(SRC:.C=.OBJ) $(PROJ).def $(PROJ).res
  90. !IFDEF DEBUG
  91.       $(link) @<<
  92.       $(lflags) $(ldebug) $(objfiles) $(libs)
  93. <<
  94. !ELSE
  95.       $(link) @<<
  96.       $(lflags) $(lretail) $(objfiles) $(libs)
  97. <<
  98. !ENDIF
  99.